package com.loop.homework;

public class Student extends Person{
    //班级号
    private String classNum;
    //成绩
    private Integer grade;

    @Override
    public void messagePrint(){
        System.out.println("编号:"+getId()+",姓名:"+getName()+",班级号:"+this.classNum+",成绩:"+this.grade);
    }


    public String getClassNum() {
        return classNum;
    }

    public void setClassNum(String classNum) {
        this.classNum = classNum;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }
}
